package com.premedsidekick;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class CoreCourseRequirements extends ListActivity {
	String[] list = {"Core Requirements", "Additional Requirements"};
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		getListView().setDivider(null);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.listview, R.id.line1);
		for (String s: list) {
			adapter.add(s);
		}
		setListAdapter(adapter);
	}
	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		Intent intent = null;
		if (position == 0)
			intent = new Intent(this, CoreRequirements.class);
		else
			intent = new Intent(this, Temp_HorizontalScrollView.class);
		startActivity(intent);
	}
}


